import request from '@/utils/request'

// 查询收费管理列表
export function listStatistic(query) {
  return request({
    url: '/statistic/statistic/list',
    method: 'get',
    params: query
  })
}

// 查询收费管理详细
export function getStatistic(tollManageId) {
  return request({
    url: '/statistic/statistic/' + tollManageId,
    method: 'get'
  })
}

// 新增收费管理
export function addStatistic(data) {
  return request({
    url: '/statistic/statistic',
    method: 'post',
    data: data
  })
}

// 修改收费管理
export function updateStatistic(data) {
  return request({
    url: '/statistic/statistic',
    method: 'put',
    data: data
  })
}

// 删除收费管理
export function delStatistic(tollManageId) {
  return request({
    url: '/statistic/statistic/' + tollManageId,
    method: 'delete'
  })
}

export function retialAdd(data) {
  return request({
    url: '/statistic/statistic/retialAdd',
    method: 'post',
    data
  })
}

export async function  getEx() {
  return await request({
    url: '/JwkEaxmp/getall',
    method: 'get'
  })
}

export async function  listMedic(query) {
  return await request({
    url: '/jwkMedicine/list',
    method: 'post',
    data: query
  })
}
// 患者信息 name 模糊查询
export function getP(name) {
  return request({
    url: '/proson/pentnt/'+name,
    method: 'get'
  })
}


export function getOper() {

  return request({
    url: '/statistic/statistic/oper',
    method: 'get',
  })
}   